<?php
	/****************************************************
	 * @autor		: Renato Miawaki
	 * PayPalConfig.class.php
	 * 
	 * This is the configuration file for the samples.This file
	 * defines the parameters needed to make an API call.
	 * 
	 * PayPal includes the following API Signature for making API
	 * calls to the PayPal sandbox:
	
		API Username 	sdk-three_api1.sdk.com
		API Password 	QFZCWN5HZM8VBG7Q
		API Signature 	A.d9eRKfd1yVkRrtmMfCFLTqa6M9AyodL0SJkhYztxUi8W9pCXF6.4NI
	
	Called by CallerService.php.
	****************************************************/
class PayPalConfig{
	/**
	# API user: The user that is identified as making the call. you can
	# also use your own API username that you created on PayPal�s sandbox
	# or the PayPal live site
	*/
	public static $API_USERNAME			= "platfo_1255077030_biz_api1.gmail.com";
	
	/**
	# API_password: The password associated with the API user
	# If you are using your own API username, enter the API password that
	# was generated by PayPal below
	# IMPORTANT - HAVING YOUR API PASSWORD INCLUDED IN THE MANNER IS NOT
	# SECURE, AND ITS ONLY BEING SHOWN THIS WAY FOR TESTING PURPOSES
	*/
	public static $API_PASSWORD			= "1255077037";
	
	/**
	# API_Signature:The Signature associated with the API user. which is generated by paypal.
	*/
	public static $API_SIGNATURE		= "Abg0gYcQyxQvnf2HDJkKtA-p6pqhA1k-KTYE0Gcy1diujFio4io5Vqjf";
	
	/**
	# Endpoint: this is the server URL which you have to connect for submitting your API request.
	*/
	public static $API_ENDPOINT			= "https://api-3t.sandbox.paypal.com/nvp";
	
	/*
	 # Third party Email address that you granted permission to make api call.
	 */
	public static $SUBJECT				= "";
	/*for permission APIs ->token, signature, timestamp  are needed */
	public static $AUTH_TOKEN			= "4oSymRbHLgXZVIvtZuQziRVVxcxaiRpOeOEmQw";
	public static $AUTH_SIGNATURE		= "+q1PggENX0u+6vj+49tLiw9CLpA=";
	public static $AUTH_TIMESTAMP		= "1284959128";
	/**
	USE_PROXY: Set this variable to TRUE to route all the API requests through proxy.
	like define('USE_PROXY',TRUE);
	*/
	public static $USE_PROXY			= FALSE;
	//se USE_PROXY for true, configure abaixo
	public static $PROXY_HOST			= '127.0.0.1';
	public static $PROXY_PORT			= '808';
	
	/* Define the PayPal URL. This is the URL that the buyer is
	   first sent to to authorize payment with their paypal account
	   change the URL depending if you are testing on the sandbox
	   or going to the live PayPal site
	   For the sandbox, the URL is
	   https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&token=
	   For the live site, the URL is
	   https://www.paypal.com/webscr&cmd=_express-checkout&token=
	   */
	public static $PAYPAL_URL			= 'https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&token=';
	
	/**
	# Version: this is the API version in the request.
	# It is a mandatory parameter for each API request.
	# The only supported value at this time is 2.3
	*/
	public static $VERSION				= '65.1';
	
	// Ack related constants
	public static $ACK_SUCCESS			= 'SUCCESS';
	public static $ACK_SUCCESS_WITH_WARNING = 'SUCCESSWITHWARNING';
}
